package com.lwy.qiuchao.integration.controller;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.lwy.qiuchao.integration.vo.AlltimeVo;
import com.lwy.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.lwy.qiuchao.integration.service.AllDurationService;


/**
 * 
 *
 * @author lwy
 * @email ${email}
 * @date 2020-12-01 15:34:10
 */
@RestController
@RequestMapping("integration/allduration")
public class AllDurationController {
    @Autowired
    private AllDurationService allDurationService;

    /**
     * 通过会员id查询 在各个球场打球时长
     *
     * 参数 memberId
     *
     * 返回值
     * */
    @RequestMapping("/alltime")
    public R getTimelistBymid(@RequestParam Map<String,Object> params){
        List<AlltimeVo> list = allDurationService.getTimelistBymid(params);
        return R.ok().put("data",list);
    }
}
